<?php /* Smarty version 2.6.16, created on 2009-04-25 12:24:08
         compiled from public/_template.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'public/_template.html', 7, false),array('function', 'module', 'public/_template.html', 17, false),array('function', 'url', 'public/_template.html', 20, false),array('function', 'bookmarks', 'public/_template.html', 69, false),array('function', 'img', 'public/_template.html', 108, false),array('function', 'str_replace', 'public/_template.html', 224, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/_header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<body>
<div id="main_body">
<?php if (isStaff ( ) && getParam ( 'site_shutdown' )): ?>
<div id="site_offline">
	<?php echo smarty_function_language(array('text' => 'Mod_Site.website_is_offline'), $this);?>

</div>
<?php endif; ?>
<table id="outer" cellpadding="0" cellspacing="0">
<tr>
<td>
  <div id="outer2">
 <table style="margin-left:auto;margin-right:auto;" cellpadding="0" cellspacing="0">
 <tr>
 	<?php echo smarty_function_module(array('module' => 'Menu','component' => 'MainMenu','location' => 'main','template' => 'MainMenu'), $this);?>

    <?php if (! empty ( $this->_tpl_vars['plugin_main_links'] )): ?>
    <?php unset($this->_sections['I']);
$this->_sections['I']['name'] = 'I';
$this->_sections['I']['loop'] = is_array($_loop=$this->_tpl_vars['plugin_main_links']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['I']['show'] = true;
$this->_sections['I']['max'] = $this->_sections['I']['loop'];
$this->_sections['I']['step'] = 1;
$this->_sections['I']['start'] = $this->_sections['I']['step'] > 0 ? 0 : $this->_sections['I']['loop']-1;
if ($this->_sections['I']['show']) {
    $this->_sections['I']['total'] = $this->_sections['I']['loop'];
    if ($this->_sections['I']['total'] == 0)
        $this->_sections['I']['show'] = false;
} else
    $this->_sections['I']['total'] = 0;
if ($this->_sections['I']['show']):

            for ($this->_sections['I']['index'] = $this->_sections['I']['start'], $this->_sections['I']['iteration'] = 1;
                 $this->_sections['I']['iteration'] <= $this->_sections['I']['total'];
                 $this->_sections['I']['index'] += $this->_sections['I']['step'], $this->_sections['I']['iteration']++):
$this->_sections['I']['rownum'] = $this->_sections['I']['iteration'];
$this->_sections['I']['index_prev'] = $this->_sections['I']['index'] - $this->_sections['I']['step'];
$this->_sections['I']['index_next'] = $this->_sections['I']['index'] + $this->_sections['I']['step'];
$this->_sections['I']['first']      = ($this->_sections['I']['iteration'] == 1);
$this->_sections['I']['last']       = ($this->_sections['I']['iteration'] == $this->_sections['I']['total']);
?>
	<td class="menu" onclick="javascript:window.location.href='<?php echo smarty_function_url(array('link' => ($this->_tpl_vars['plugin_main_links'][$this->_sections['I']['index']]['link'])), $this);?>
';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
   	 <a href="<?php echo smarty_function_url(array('link' => ($this->_tpl_vars['plugin_main_links'][$this->_sections['I']['index']]['link'])), $this);?>
"><?php echo $this->_tpl_vars['plugin_main_links'][$this->_sections['I']['index']]['name']; ?>
</a>
    </td>
	<?php endfor; endif; ?>
    <?php endif; ?>
 </tr>
 </table>
 </div>
  <?php if ($this->_tpl_vars['bHideHeader']): ?>
 <table id="top" cellpadding="0" cellspacing="0" border="0">
 <tr>
 	<td>
 		<table style="width:100%;" cellpadding="4" cellspacing="4">
 		<tr>
 			<td style="font-size:8pt;vertical-align:middle;">
 				<?php echo smarty_function_module(array('module' => 'Messenger','component' => 'Alert','oUser' => $this->_tpl_vars['oCurrUser']), $this);?>

 			</td>
 			<td style="vertical-align:middle; font-size:7pt; text-align:right;">
 				
 				<?php if ($this->_tpl_vars['bAllowLangPack'] && ! $this->_tpl_vars['aCurrUser']): ?>
 				<form method="post" action="<?php echo smarty_function_url(array('link' => 'public'), $this);?>
" style="margin:0px;">
 				<div><input type="hidden" name="return" value="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" /></div>
 				<?php endif; ?> 				
 			
 				<table style="margin-right:0px; margin-left:auto; text-align:left; font-size:7pt;" cellpadding="1" cellspacing="1">
 				<tr>
 				 	<?php echo smarty_function_module(array('module' => 'Menu','component' => 'MainMenu','location' => 'header','template' => 'MainHeader'), $this);?>
 					
 				 	<?php if (! pluginInstalled ( 'chat' )): ?>
 					<td> 			
					    <a <?php if ($this->_tpl_vars['aCurrUser']): ?>href="javascript:void(0);" onclick="popUp2('<?php echo smarty_function_url(array('link' => 'public.account.livechat'), $this);?>
', '800','610','yes','100','100', 'chat');"<?php else: ?>href="<?php echo smarty_function_url(array('link' => "public.login"), $this);?>
"<?php endif; ?>><?php echo smarty_function_language(array('text' => 'live_chat'), $this);?>
</a>
		    		</td>
		    		<td>|</td>
		    		<?php else: ?>
 					<td> 			
					    <a <?php if ($this->_tpl_vars['aCurrUser']): ?>href="javascript:void(0);" onclick="popUp2('<?php echo $this->_tpl_vars['sChatUrl']; ?>
','800','435','yes','100','100', 'flashchat');"<?php else: ?>href="<?php echo smarty_function_url(array('link' => "public.login"), $this);?>
"<?php endif; ?>><?php echo smarty_function_language(array('text' => 'Mod_Chat.flashchat'), $this);?>
</a>
		    		</td>
		    		<td>|</td>		    		
		    		<?php endif; ?>
		    		<td>
						<a <?php if ($this->_tpl_vars['aCurrUser']): ?>href="javascript:void(0);" onclick="popUp2('<?php echo smarty_function_url(array('link' => 'public.account.messenger'), $this);?>
','330','615','yes','200','100', 'messenger');"<?php else: ?>href="<?php echo smarty_function_url(array('link' => "public.login"), $this);?>
"<?php endif; ?>><?php echo smarty_function_language(array('text' => 'Mod_Chat.instant_messenger'), $this);?>
</a>
					</td>
					<td>|</td>
					<td>
					<?php if (getParam ( 'allow_bookmarking' )): ?>
						<a href="javascript:void(0);" style="cursor:pointer;" class="hidClass" onclick="sId('social_bookmarks').style.display='';"><?php echo smarty_function_language(array('text' => 'main_bookmark'), $this);?>
</a>
						<div>
							<div id="social_bookmarks" style="position:absolute; padding:5px; display:none;" class="socialBox hidClass">
							<div class="socialDefault" onclick="bookmark('<?php echo $this->_tpl_vars['sUrl']; ?>
', '<?php echo smarty_function_module(array('module' => 'Site','component' => 'SiteTitle'), $this);?>
'); sId('social_bookmarks').style.display='none';" style="padding:2px; cursor:pointer; width:125px;" onmouseover="this.className='socialOver';" onmouseout="this.className='socialDefault';"><img src="file/pic/bookmarks/favorites.png" alt="" style="vertical-align:middle;" /> <?php echo smarty_function_language(array('text' => 'favorites'), $this);?>
</div>
								<?php echo smarty_function_bookmarks(array('header' => 'true'), $this);?>

							</div>
						</div>
					<?php else: ?>
					<a href="javascript:void(0);" onclick="bookmark('<?php echo $this->_tpl_vars['sUrl']; ?>
', '<?php echo smarty_function_module(array('module' => 'Site','component' => 'SiteTitle'), $this);?>
');"><?php echo smarty_function_language(array('text' => 'bookmark_us'), $this);?>
</a>					
					<?php endif; ?>
					</td>
				<?php if ($this->_tpl_vars['aCurrUser']): ?>
					<td>|</td>			
					<td style="vertical-align:middle;">
            			<a href="<?php echo smarty_function_url(array('link' => 'public.logout'), $this);?>
"><?php echo smarty_function_language(array('text' => 'logout'), $this);?>
</a>
            		</td>
            	<?php endif; ?>
    	         <?php if ($this->_tpl_vars['bAllowLangPack'] && ! $this->_tpl_vars['aCurrUser']): ?>
    	         	<td>|</td>
	            	<td style="font-size:7pt;">
    	         		<?php echo smarty_function_language(array('text' => "up.language"), $this);?>
:
    	         	</td>
    	         	<td>
             			<select name="guest_language" style="width:100px; vertical-align:middle;" onchange="submit();">
            				<?php $_from = $this->_tpl_vars['aLanguages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aLang']):
?>
            				<?php if ($this->_tpl_vars['aLang']['userselect']): ?>
							<option value="<?php echo $this->_tpl_vars['aLang']['id']; ?>
"<?php if ($this->_tpl_vars['sGuestLang'] == $this->_tpl_vars['aLang']['id']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['aLang']['title']; ?>
</option>
							<?php endif; ?>
							<?php endforeach; endif; unset($_from); ?>
						</select>
					</td>
            	<?php endif; ?>				
				</tr>
				</table>
				<?php if ($this->_tpl_vars['bAllowLangPack'] && ! $this->_tpl_vars['aCurrUser']): ?>
				</form>
				<?php endif; ?>				
 			</td>
 		</tr>
 		</table>
 		<table style="width:100%;" cellpadding="0" cellspacing="0">
 		<tr>
 			<td style="width:30%;font-size:14pt;vertical-align:middle;text-align:center;" class="top2">
 				<?php if ($this->_tpl_vars['sLogoFile']): ?><a href="<?php echo smarty_function_url(array('link' => 'public'), $this);?>
"><?php echo smarty_function_img(array('src' => ($this->_tpl_vars['sStylePath']).($this->_tpl_vars['sLogoFile']),'alt' => ""), $this);?>
</a><?php endif; ?>
 			</td>
 			<td style="width:70%;vertical-align:middle;text-align:center;" class="top2">
 				&nbsp;<?php echo smarty_function_module(array('module' => 'Ads','component' => 'ShowAds','place' => 1), $this);?>

 			</td>
 		</tr>
 		</table>
 		<br />
 	</td>
 </tr>
 </table>
  <?php if ($this->_tpl_vars['aCurrUser']): ?>
    <?php else: ?>
 <?php echo smarty_function_module(array('module' => 'Account','component' => 'Login','url_success' => 'public.account','url_error' => 'public.login','url_forgotpass' => 'public.forgotpass'), $this);?>

    <?php endif; ?>
  <?php else: ?>
<br />
<div style="text-align:center;">
	<?php echo smarty_function_module(array('module' => 'Ads','component' => 'ShowAds','place' => 2), $this);?>

</div>
<br />
<table class="mainmenu5" style="width:100%;" cellpadding="5" cellspacing="0">
<tr>
    <td style="vertical-align:center;font-size:9pt;text-align:right;">
        <div style="padding:5px;">
        <?php echo $this->_tpl_vars['sSiteSlogan']; ?>

        </div>
    </td>
</tr>
</table>
<?php endif; ?>
<table style="width:100%;" cellpadding="0" cellspacing="0">
    <tr>
        <td><div id="msalert"></div></td>
    </tr>
	<tr>
		<td style="vertical-align:top;" id="main">
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['sTplName'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding:5px;">
			<tr>
    			<td align="center">
        			<?php echo smarty_function_module(array('module' => 'Ads','component' => 'ShowAds','place' => 2), $this);?>

    			</td>
			</tr>
			</table>
			<?php if (! empty ( $this->_tpl_vars['plugin_content'] )):  echo $this->_tpl_vars['plugin_content'];  endif; ?>
		</td>
	</tr>
</table>
<?php if ($this->_tpl_vars['bHideHeader']): ?>
 <table id="bottom3" cellpadding="5" cellspacing="5">
 <tr>
    <td style="font-size:7pt;">
    <div style="padding:5px;">
        <a href="javascript:void(0);" onclick="popUp2('<?php echo smarty_function_url(array('link' => 'public.popup','file' => 'terms','dir' => 'language'), $this);?>
','500','500','yes','200','100');"><?php echo smarty_function_language(array('text' => 'terms_amp_conditions'), $this);?>
</a>
        | <a href="javascript:void(0);" onclick="popUp2('<?php echo smarty_function_url(array('link' => 'public.popup','file' => 'help','dir' => 'language'), $this);?>
','500','500','yes','200','100');"><?php echo smarty_function_language(array('text' => 'help'), $this);?>
</a>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.contact-us'), $this);?>
"><?php echo smarty_function_language(array('text' => 'contact_us'), $this);?>
</a>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.account.invite'), $this);?>
"><?php echo smarty_function_language(array('text' => 'invite'), $this);?>
</a>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.rss.view'), $this);?>
"><?php echo smarty_function_language(array('text' => "rss.feeds"), $this);?>
</a>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.content','file' => 'about_us','dir' => 'language'), $this);?>
"><?php echo smarty_function_language(array('text' => 'about_us'), $this);?>
</a>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.content','dir' => 'language','file' => 'get_involved'), $this);?>
"><?php echo smarty_function_language(array('text' => 'get_involved'), $this);?>
</a>
        <?php if (getParam ( 'sub_system' )): ?>| <a href="<?php echo smarty_function_url(array('link' => 'public.subscribe'), $this);?>
"><?php echo smarty_function_language(array('text' => 'subscribe'), $this);?>
</a><?php endif; ?>
        | <a href="<?php echo smarty_function_url(array('link' => 'public.archive'), $this);?>
"><?php echo smarty_function_language(array('text' => 'archive'), $this);?>
</a>
        <div style="padding-top:4px;">
		<?php echo smarty_function_module(array('module' => 'Menu','component' => 'MainMenu','location' => 'bottom','template' => 'MainFooter'), $this);?>

        <?php if (! empty ( $this->_tpl_vars['plugin_bottom_links'] )): ?>
        <?php unset($this->_sections['I']);
$this->_sections['I']['name'] = 'I';
$this->_sections['I']['loop'] = is_array($_loop=$this->_tpl_vars['plugin_bottom_links']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['I']['show'] = true;
$this->_sections['I']['max'] = $this->_sections['I']['loop'];
$this->_sections['I']['step'] = 1;
$this->_sections['I']['start'] = $this->_sections['I']['step'] > 0 ? 0 : $this->_sections['I']['loop']-1;
if ($this->_sections['I']['show']) {
    $this->_sections['I']['total'] = $this->_sections['I']['loop'];
    if ($this->_sections['I']['total'] == 0)
        $this->_sections['I']['show'] = false;
} else
    $this->_sections['I']['total'] = 0;
if ($this->_sections['I']['show']):

            for ($this->_sections['I']['index'] = $this->_sections['I']['start'], $this->_sections['I']['iteration'] = 1;
                 $this->_sections['I']['iteration'] <= $this->_sections['I']['total'];
                 $this->_sections['I']['index'] += $this->_sections['I']['step'], $this->_sections['I']['iteration']++):
$this->_sections['I']['rownum'] = $this->_sections['I']['iteration'];
$this->_sections['I']['index_prev'] = $this->_sections['I']['index'] - $this->_sections['I']['step'];
$this->_sections['I']['index_next'] = $this->_sections['I']['index'] + $this->_sections['I']['step'];
$this->_sections['I']['first']      = ($this->_sections['I']['iteration'] == 1);
$this->_sections['I']['last']       = ($this->_sections['I']['iteration'] == $this->_sections['I']['total']);
?>
        <?php if ($this->_tpl_vars['plugin_bottom_links'][$this->_sections['I']['index']]['count'] != 1): ?> | <?php endif; ?>
        <a href="<?php echo smarty_function_url(array('link' => ($this->_tpl_vars['plugin_bottom_links'][$this->_sections['I']['index']]['link'])), $this);?>
"><?php echo $this->_tpl_vars['plugin_bottom_links'][$this->_sections['I']['index']]['name']; ?>
</a>
        <?php endfor; endif; ?>
        <?php endif; ?>
		</div>
	</div>
    <br />
    <table id="bottom4" style="width:100%;" cellpadding="4" cellspacing="4">
    <tr>
        <td style="text-align:center;font-size:8pt;">
            *** <?php echo $this->_tpl_vars['sSiteName']; ?>
 ***
        </td>
    </tr>
    </table>
	</td>
</tr>
</table>
<?php else: ?>
<table class="mainmenu5" style="width:100%;" cellpadding="5" cellspacing="0">
<tr>
    <td style="vertical-align:center;font-size:9pt;">
        <div style="padding:5px;">
            <?php echo $this->_tpl_vars['sSiteSlogan']; ?>

        </div>
    </td>
</tr>
</table>
<?php endif; ?>
</td>
</tr>
</table>
<?php if ($this->_tpl_vars['bRemoveBrand']): ?>
<!-- #####################################

POWERED BY PHPFOX

 A phpFoX Limited Company

 You may not remove this copyright as agreed by our Terms & Conditions.

             - www.phpfox.com

 ##################################### //-->
<div style="text-align:center;margin:4px;">
	<div style="padding:8px;font-size:8pt;margin-left:auto;margin-right:auto;width:400px;">
		<a href="http://www.phpfox.com/" target="_blank" style="padding:5px;"><?php echo smarty_function_str_replace(array('text' => "`powered_by_phpfox_version_sphpfoxve`",'sPhpFoxVersion' => ($this->_tpl_vars['sPhpFoxVersion'])), $this);?>
</a>
	</div>
</div>
 <!-- #####################################


     1. phpFoX and all of its source code and files are protected by Copyright Laws.

     2. The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).

     3. You may also not remove the "Powered By phpFoX" screen which shows the copyright information and credits for phpFoX.



 ##################################### //-->
<?php endif; ?>
</div>
<div id="ajax_temp_content" style="display:none;"></div>
<div id="popupLayer" style="display:none;"></div>
<?php if (! getParam ( 'debug' )): ?>
</body>
</html><?php endif; ?>